package com.antoco.operation.bigscreen.model.dto;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="PipeMateTjDTO")
public class PipeMateTjDTO {

    @NotNull(message = "PE材质不能为空")
    @Min(value = 0, message = "PE材质必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "PE材质必须是整数")
    @ApiModelProperty(value = "PE材质", example="10")
    private String peZb;

    @NotNull(message = "不锈钢材质不能为空")
    @Min(value = 0, message = "不锈钢材质必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "不锈钢材质必须是整数")
    @ApiModelProperty(value = "不锈钢材质", example="10")
    private String bxgZb;

    @NotNull(message = "铁管材质不能为空")
    @Min(value = 0, message = "铁管材质必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "铁管材质必须是整数")
    @ApiModelProperty(value = "铁管材质", example="10")
    private String tieZb;

    @NotNull(message = "水泥材质不能为空")
    @Min(value = 0, message = "水泥材质必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "水泥材质必须是整数")
    @ApiModelProperty(value = "水泥材质", example="10")
    private String suiniZb;

    @NotNull(message = "其它材质不能为空")
    @Min(value = 0, message = "其它材质必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "其它材质必须是整数")
    @ApiModelProperty(value = "其它材质", example="10")
    private String otherZb;
}